Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ensure clean config files #70

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

zacronos
Copy link
Contributor

@zacronos zacronos commented Feb 3, 2016

The gen-pgbouncer-conf.sh script creates 3 config files -- but always uses the append operator (>>) to do so. This is fine most of the time, but for example if someone creates a one-off instance to test something, and winds up running bin/start-pgbouncer-stunnel more than once (which calls gen-pgbouncer-conf.sh), then invalid config files wind up being creted for subsequent runs.

This PR fixes the issue by explicitly removing the 3 config files before any append operations, ensuring a clean start.

@valeriecodes valeriecodes changed the base branch from master to main August 7, 2020 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant